package com.zdlog.wenjuan.util;

import com.zdlog.wenjuan.VO.ResultVO;

/**
 * @program: sell
 * @PACKAGE_NAME: com.zdlog.sell.util
 * @author: Kuaile
 * @create: 2018-01-31 14:33
 **/
public class ResultVOUtil {

    public static ResultVO success(Object object) {
        ResultVO resultVO = new ResultVO();
        resultVO.setData(object);
        resultVO.setCode(0);
        resultVO.setMsg("成功");
        return resultVO;
    }
    public static ResultVO success() {
        return success(null);
    }




    public static ResultVO error(Integer code, String msg) {
        ResultVO resultVO = new ResultVO();
        resultVO.setCode(code);
        resultVO.setMsg(msg);
        return resultVO;
    }

}
